CMAKE_BUILD_PARALLEL_LEVEL=36 MAX_JOBS=36 CMAKE_CUDA_ARCHITECTURES="50;52;60;61;70;75;80;86" \
        && (curl https://cr-images-pub.oss-cn-hangzhou.aliyuncs.com/root/modelscope/thrust.tar.gz | tar -xz) \
        && cd thrust \
        && mkdir build \
        && cd build \
        && cmake -DCMAKE_INSTALL_PREFIX=/usr/local/cuda/ -DTHRUST_INCLUDE_CUB_CMAKE=ON .. \
        && make install \
        && cd ../.. \
        && rm -rf thrust \
        && pip install --no-cache-dir fvcore iopath \
        && (curl https://cr-images-pub.oss-cn-hangzhou.aliyuncs.com/root/modelscope/pytorch3d.tar.gz | tar -xz ) \
        && cd pytorch3d && pip install . && cd .. \
        && yum install -y pkg-config libglvnd-devel mesa-libGL-devel libglvnd-glx libglvnd-opengl mesa-libEGL-devel libglvnd-egl libglvnd-gles libglvnd-gles -y \
        && (curl https://cr-images-pub.oss-cn-hangzhou.aliyuncs.com/root/modelscope/nvdiffrast.tar.gz | tar -xz) \
        && cd nvdiffrast \
        && pip install --no-cache-dir . \
        && cd .. \
        && rm -rf nvdiffrast

# git clone --branch 2.1.0 --recursive https://github.com/NVIDIA/thrust.git
# git clone https://github.com/NVlabs/nvdiffrast.git
# git clone --branch=stable https://github.com/facebookresearch/pytorch3d.git